import request from "@/plugin/axios";

const BASE_URL = "sys/log";

export function OperLogList(data) {
  return request({
    url: BASE_URL,
    method: "get",
    params: data,
  });
}

export function OperLogExport(data) {
  return request({
    url: BASE_URL + "/export",
    method: "get",
    params: data,
    responseType: "blob",
  });
}
// 获取异常详情
export function ErrorLogDetail(id) {
  return request({
    url: BASE_URL + "/" + id,
    method: "get",
  });
}
